import { Component, EventEmitter, Input, Output, OnInit, OnChanges } from '@angular/core';
import { Assembly, AssemblyStyles, AssemblyValidators } from '../../../fb-design.model';
import { SelectItem } from 'primeng/primeng';
@Component({
    selector: 'qk-image-attributes',
    templateUrl: 'qk-image-attributes.component.html',
    styleUrls: ['qk-image-attributes.component.scss'],
    providers: []
})
export class QkImageAttributes implements OnInit {
    @Input() assembly;
    @Input() 
    set names(names: string[]){
        let temp = [];
        names.forEach(e => temp.push({label: e, value: e}));
        this.nameItems = temp;
    }
    yesNo: SelectItem[] = [{ label: '否', value: false }, { label: '是', value: true }];
    nameItems: SelectItem[];
    ngOnInit() {
    }

    constructor() {
    }

}